:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --open-color: #27ae60;
    --closed-color: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    text-align: center;
    padding: 1.2rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin: -0.5rem -0.5rem 1rem -0.5rem;
    position: relative;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.schedule-container {
    margin-bottom: 1.5rem;
}

.schedule-header {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1.2fr 0.8fr;
    background-color: var(--dark-color);
    color: white;
    padding: 0.6rem 0.4rem;
    border-radius: 5px 5px 0 0;
    font-weight: bold;
    text-align: center;
    font-size: 0.9rem;
}

.schedule-row {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1.2fr 0.8fr;
    padding: 0.8rem 0.4rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.schedule-row:nth-child(odd) {
    background-color: rgba(236, 240, 241, 0.5);
}

.date-cell {
    font-weight: 600;
    font-size: 0.85rem;
}

.day-cell {
    color: var(--secondary-color);
}

.hours-cell {
    font-weight: 600;
}

.status-cell {
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    display: inline-block;
    min-width: 60px;
    font-size: 0.85rem;
}

.status-open {
    background-color: rgba(39, 174, 96, 0.2);
    color: var(--open-color);
}

.status-closed {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--closed-color);
}

footer {
    text-align: center;
    padding-top: 1rem;
    color: #7f8c8d;
    font-size: 0.8rem;
}

.loading {
    text-align: center;
    padding: 1.5rem;
    color: #7f8c8d;
}

/* 今日高亮 */
.today {
    background-color: rgba(52, 152, 219, 0.15) !important;
    border-left: 4px solid var(--primary-color);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-button {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
}

.close-button:hover {
    color: var(--accent-color);
}

.form-group {
    margin: 1.5rem 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#save-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

#save-button:hover {
    background-color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 600px) {
    .schedule-header, .schedule-row {
        font-size: 0.9rem;
    }
    
    .status-cell {
        min-width: 60px;
        padding: 0.2rem 0.5rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
} 